<html>
<head><meta charset="utf-8"><title>Exposing GenericParam.name · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Exposing.20GenericParam.2Ename.html">Exposing GenericParam.name</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="180979685"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Exposing%20GenericParam.name/near/180979685" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eonil <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Exposing.20GenericParam.2Ename.html#180979685">(Nov 18 2019 at 00:41)</a>:</h4>
<p>Hello, I am having a trouble to get generic parameter names of a struct/enum at HIR level.<br>
It seems <code>generics::GenericParam.name</code> is the name but it is not <code>pub(crate)</code>. Can you make it <code>pub</code>?</p>



<a name="180995841"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Exposing%20GenericParam.name/near/180995841" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Exposing.20GenericParam.2Ename.html#180995841">(Nov 18 2019 at 08:26)</a>:</h4>
<p>Made public</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>